import Vue from 'vue'
import {
  NavBar, Tabbar, TabbarItem, Swipe,
  SwipeItem, Grid, GridItem,
  Card, Cell, CellGroup, Field, Button,
  List, Icon, Rate, PullRefresh, Tab, Tabs, Lazyload,
  Stepper
} from 'vant'

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
  loading: require('../assets/loading.gif')
})

Vue.use(NavBar)
  .use(Tabbar).use(TabbarItem)
  .use(Swipe).use(SwipeItem)
  .use(Grid).use(GridItem)
  .use(Card)
  .use(Cell).use(CellGroup)
  .use(Field)
  .use(Button)
  .use(List)
  .use(Icon)
  .use(Rate)
  .use(PullRefresh)
  .use(Tab).use(Tabs)
  .use(Stepper)
